9a19f2775923346cbb724a67e9a4628b63d766b9,src/main/java/pitt/search/lucene/IndexFilePositions.java,IndexFilePositions,main,#String[]#,60

Before Change


    flagConfig = FlagConfig.getFlagConfig(args);
    // Allow for the specification of a directory to write the index to.
    if (flagConfig.luceneindexpath().length() > 0) {
      INDEX_DIR = new File(flagConfig.luceneindexpath());
    }
    if (INDEX_DIR.exists()) {
      throw new IllegalArgumentException(

After Change


    flagConfig = FlagConfig.getFlagConfig(args);
    // Allow for the specification of a directory to write the index to.
    if (flagConfig.luceneindexpath().length() > 0) {
      INDEX_DIR = FileSystems.getDefault().getPath(flagConfig.luceneindexpath());
    }

    if (Files.exists(INDEX_DIR)) {